<!DOCTYPE html>
<html>
<head>
	<title>{% block title %} {% end %}</title>
    <link href="/static/css/main_style.css" type="text/css" rel="stylesheet">
    {% block css %}{% end %}
	<script type="text/javascript" src="/static/js/jquery/jquery-1.7.min.js"></script>
	<script type="text/javascript" src="/static/js/jquery/jquery.form.js"></script>
	<script type="text/javascript" src="/static/js/jquery/jquery.json.min.js"></script>
    <script type="text/javascript" src="/static/js/main_js.js"></script>
	{% block js %}{% end %}
</head>
<body>
	<div>
        <span class="navi_head" id="navi_head">
		    <a href="/">{{ _("Main Page") }}</a> | <a href="">{{ _("Refresh") }}</a> | <a href="/blog">{{ _("Blog") }}</a>
        </span>
        <span class="user_head" id="user_head">
            {% if user %}
                 {{ user.login }} | <a href="/avt?mode=exit&uri={{ request.path }}">{{ _("Sign out") }}</a>
                 <span class="new_post"><a href="/blog/newpost">{{ _("Write") }}</a></span>
            {% else %}
                <a href="/avt?uri={{ request.path }}">{{ _("Authorization") }}</a> |
                <a href="/registration">{{ _("Registration") }}</a>
            {% end %}
            </span>
	</div>
    <div class="search">
        <form action="/blog/search/tags" method="post">
            <input type="text" name="tag" value="{% block searchtagtext %}{% end %}">
            <input class="button" type="submit" name="newblogpost" value="{{ _("Search") }}">
            {{ xsrf_form_html() }}
        </form>
        {% block tagsblock %}{% end %}
    </div>
	<div class="content">{% block body %}{% end %}</div>
	<div class="counter">{{ _("Walks") }}: {{ counter }}.</div>
</body>
</html>